package com.financing.wap.dao.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;
import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IFaNoticeDao;
import com.financing.wap.dto.FaNoticeDTO;
import com.financing.wap.vo.FaNoticeVO;

@Repository("faNoticeDao")
@SuppressWarnings(value = { "deprecation", "unchecked" })
public class FaNoticeDaoImpl extends BaseDaoImpl<FaNoticeDTO, Integer>implements IFaNoticeDao {

	@Override
	public List<FaNoticeVO> getFaOrderNoticeByFa(FaNoticeVO n) throws Exception {
		return this.sqlMapClientTemplate.queryForList(SqlName.getFaOrderNoticeByFa, n);
	}
	
	@Override
	public int getFaOrderNoticeByFaCount(FaNoticeVO n) throws Exception {
		return (Integer)this.sqlMapClientTemplate.queryForObject(SqlName.getFaOrderNoticeByFaCount, n);
	}

	@Override
	public Class<FaNoticeDTO> getEntityClass() {
		return FaNoticeDTO.class;
	}

	@Override
	public Map<String, Object> getFaOrderNoticeUpdateDateByFa(Map<String, Object> map) {
		return (Map<String, Object>)this.sqlMapClientTemplate.queryForObject(SqlName.getFaOrderNoticeUpdateDateByFa, map);
	}

	@Override
	public void readFaNoticeByFa(FaNoticeVO faNotice) {
		this.sqlMapClientTemplate.update(SqlName.readFaNoticeByFa, faNotice);
	}

}
